import Phaser from 'phaser'

export default class extends Phaser.State {
  init () {
    this.stage.backgroundColor = '#3d8bf5'
    this.scale.scaleMode = Phaser.ScaleManager.EXACT_FIT
  }

  preload () {
    const game = this.game
    game.load.image('loading', 'assets/preloader.gif')
  }
  create () {
    this.state.start('Loading')
  }
}
